package com.iconflux.training;

public class Pyramid_1 
{
	 public void getTriangle()
	 {
	 int l=5,i,j=0,k=0;
	 {	
		for(i=l;i>0;i--)
		{
			System.out.println();
			for(k=0;k<l-i;++k) 
			{
				System.out.print(" ");
			}
			for(j=0;j<i;j++)
			{
				System.out.print("* ");
			}		
		
		}
		
		
		for(i=1;i<=l;i++)
		{
			System.out.println();
			for(k=0;k<l-i;++k) 
			{
				System.out.print(" ");
			}
			for(j=0;j<i;j++)
			{
				
				System.out.print("* ");
			}
		}
	 }
	 }
	 
	 public void mesasage() {
		 
	 }
}
